<cfcomponent output="false">

	<cffunction name="GetAddressByID" output="false" access="remote">
		<cfargument name="id" required="true" />
 		<cfreturn createObject("component", "AddressDAO").read(arguments.id)>
	</cffunction>


	<cffunction name="SaveAddress" output="false" access="remote">
		<cfargument name="obj" required="true" />
 		<cfscript>
			if( obj.ID eq 0 )
			{
				return createObject("component", "AddressDAO").create(arguments.obj);
			} else {
				return createObject("component", "AddressDAO").update(arguments.obj);
			}
		</cfscript>
	</cffunction>


	<cffunction name="DeleteAddressByID" output="false" access="remote">
		<cfargument name="id" required="true" />
		<cfset var obj = GetAddressByID(arguments.id)>
		<cfset createObject("component", "AddressDAO").delete(obj)>
	</cffunction>



</cfcomponent>